home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
libmat.lha
/
src
/
I.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
214b
|
17 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
#include "matrix.h"
Matrix I(int n)
{
Matrix A(n);
int i,j;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{
A.koff[i][j]=0;
if(i==j) A.koff[i][j]=1;
}
return(A);
}